package cn.ubeta.b2c.common;

import android.app.Activity;
import android.content.Intent;

import cn.ubeta.b2c.user.LoginActivity;
import cn.ubeta.b2c.utils.Constants;

/**
 * Created by denny on 16/9/5.
 */

public class LoginCommon {

    public static boolean isLogin() {
        // TODO isLogin
        return false;
    }

    /**
     * 跳转登录
     * @param activity
     */
    public static void gotoLogin(Activity activity) {
        Intent intent = new Intent(activity, LoginActivity.class);
        activity.startActivityForResult(intent, Constants.REQ_CODE_LOGIN);
    }

    /**
     * 退出登录
     */
    public static void logout() {
        // TODO logout
    }

    public static String getUserAccount() {
        return "TODO";
    }
}
